package com.hackintosh.factory.method.product;

/**
 * @description：
 * @author：twislyn
 * @date：Created in 2021/05/07
 * @modified By：
 * @version: 1.0
 */
public class AbstractFactoryTest {
    public static void main(String[] args) {
        try {
            AbstractFactory abstractFactory = (AbstractFactory) ReadXML1.getObject();
            Product product = abstractFactory.newProduct();
            product.show();
        }catch (Exception e){
            System.out.println(e.getMessage());
        }
    }
}
